package cn.huapu.power.energy.service.impl;

import cn.huapu.power.energy.bean.PeaIndustrytypet;
import cn.huapu.power.energy.bean.bo.DateParameterBo;
import cn.huapu.power.energy.bean.vo.DropDownVo;
import cn.huapu.power.energy.mapper.PeaIndustrytypetMapper;
import cn.huapu.power.energy.service.PeaIndustrytypetService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 测试用户权限服务实现类
 * @author autogen
 *
 */
@Service
public class PeaIndustrytypetServiceImpl extends BaseServiceImpl<PeaIndustrytypetMapper, PeaIndustrytypet,String> implements PeaIndustrytypetService {
    @Autowired
    private PeaIndustrytypetMapper petMapper;

    @Override
    @Transactional(readOnly = true)
    public List<DropDownVo> idstyTypeDrop() {
        return petMapper.dropDown();
    }

    @Override
    @Transactional(readOnly = true)
    public List<PeaIndustrytypet> industryDrop(DateParameterBo da) {
        List<PeaIndustrytypet> list = petMapper.industryDrop(da);
        return list;
    }
}
